Skip to content

chore(rbac): migrate RBAC plugin tests from RHDH#1987

Merged
gashcrumb merged 7 commits intoredhat-developer:mainfrom
PatAKnight:rbac-test-migration
Mar 13, 2026
Merged

chore(rbac): migrate RBAC plugin tests from RHDH#1987
gashcrumb merged 7 commits intoredhat-developer:mainfrom
PatAKnight:rbac-test-migration

Conversation

@PatAKnight
Copy link
Copy Markdown
Member

@PatAKnight PatAKnight commented Mar 4, 2026

Description

This PR aims to migrate the RBAC E2E tests over from the RHDH repo. There are a number of changes that I went in and perform to try to make these easier to maintain as well as make them more resilient and less flaky.

First, I removed the RBAC API E2E tests as they are technically covered by the unit tests within the RBAC backend plugin and it made more sense for them to be handled at the plugin level compared to the overlays repo.

Second, I went in and refactored a lot of the tests so that there is less duplication throughout. There were a number of selectors/locators that were duplicated throughout the pages/objects/spec files that made it hard for us to update when there were changes to the frontend. Where ever possible, I tried to reduce this by targeting ones that were repeated several times over.

Third, I removed a lot of code that was no longer used. I believe that these were hold overs from a time where the UI was much different.

Fourth, I updated as many of the serial tests as possible so that they are more independent and can now be ran in parallel. There is still one serial run left, but that one truly has requirements from previous tests.

Fifth, where ever possible, I pulled stuff up and out into constants. So, we now have a single source for roles, users, and groups to hopefully make it easier to make changes. As part of this approach, I renamed users, groups, and roles to more meaningful names to make it easier to understand what they are doing.

Sixth, I have a fall back afterAll to ensure that all roles, policies, and conditions are properly cleaned up at the end. This is so that failures don't end up impacting future tests in the event that we enable retries. This was something that was scattered throughout the original tests and didn't cover all of the created roles, policies, and conditions during testing.

Seventh, added some catalog entities so that they live with the tests instead of being referenced from external sources. This should hopefully make it easier to make changes without needing to track down the entity and finding the right person to approve them.

Which issue(s) does this PR fix

@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

Smoke tests workflow passed. All plugins loaded successfully.

@PatAKnight PatAKnight force-pushed the rbac-test-migration branch from 2676343 to 7e434fa Compare March 4, 2026 03:17
@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

Smoke tests workflow passed. All plugins loaded successfully.

@rhdh-test-bot
Copy link
Copy Markdown

❌ Failed E2E Tests - rbac

Platform: ocp 4.18 | RHDH Version: 1.10 | Duration: 10m 12s
Passed: 0 | Failed: 1 | Flaky: 0 | Skipped: 24
Playwright Report | Build Log | Artifacts

@PatAKnight PatAKnight force-pushed the rbac-test-migration branch from 7e434fa to 6040782 Compare March 4, 2026 03:48
@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

Smoke tests workflow passed. All plugins loaded successfully.

@rhdh-test-bot
Copy link
Copy Markdown

❌ Failed E2E Tests - rbac

Platform: ocp 4.18 | RHDH Version: 1.10 | Duration: 61m 21s
Passed: 1 | Failed: 21 | Flaky: 0 | Skipped: 3
Playwright Report | Build Log | Artifacts

@github-actions github-actions Bot added mandatory-workspace PR affects a workspace with required plugins for releases workspace-update PR modifies files in an existing workspace labels Mar 4, 2026
@PatAKnight PatAKnight force-pushed the rbac-test-migration branch 3 times, most recently from d81d1a7 to a0321a1 Compare March 7, 2026 05:15
@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 8, 2026

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 8, 2026

Smoke tests workflow passed. All plugins loaded successfully.

@rhdh-test-bot
Copy link
Copy Markdown

✅ Passed E2E Tests - rbac

Platform: ocp 4.18 | RHDH Version: 1.10 | Duration: 10m 13s
Passed: 24 | Failed: 0 | Flaky: 0 | Skipped: 0
Playwright Report | Build Log | Artifacts

@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 9, 2026

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@PatAKnight PatAKnight force-pushed the rbac-test-migration branch from 8fa7531 to 8c96554 Compare March 11, 2026 04:29
@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@github-actions
Copy link
Copy Markdown
Contributor

Publish workflow has completed with failure.

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

@github-actions
Copy link
Copy Markdown
Contributor

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@github-actions
Copy link
Copy Markdown
Contributor

Smoke tests workflow passed. All plugins loaded successfully.

@rhdh-test-bot
Copy link
Copy Markdown

✅ Passed E2E Tests - rbac

Platform: ocp 4.18 | RHDH Version: 1.10 | Duration: 13m 4s
Passed: 24 | Failed: 0 | Flaky: 0 | Skipped: 0
Playwright Report | Build Log | Artifacts

@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@github-actions
Copy link
Copy Markdown
Contributor

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@github-actions
Copy link
Copy Markdown
Contributor

Smoke tests workflow passed. All plugins loaded successfully.

@rhdh-test-bot
Copy link
Copy Markdown

✅ Passed E2E Tests - rbac

Platform: ocp 4.18 | RHDH Version: 1.10 | Duration: 12m 39s
Passed: 24 | Failed: 0 | Flaky: 0 | Skipped: 0
Playwright Report | Build Log | Artifacts

Signed-off-by: Patrick Knight <pknight@redhat.com>
Signed-off-by: Patrick Knight <pknight@redhat.com>
Signed-off-by: Patrick Knight <pknight@redhat.com>
Signed-off-by: Patrick Knight <pknight@redhat.com>
Signed-off-by: Patrick Knight <pknight@redhat.com>
Signed-off-by: Patrick Knight <pknight@redhat.com>
Signed-off-by: Patrick Knight <pknight@redhat.com>
@PatAKnight PatAKnight force-pushed the rbac-test-migration branch from 5839f02 to 4d4579a Compare March 12, 2026 15:20
@openshift-ci openshift-ci Bot removed the lgtm label Mar 12, 2026
@PatAKnight
Copy link
Copy Markdown
Member Author

/publish

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

Publish workflow has completed with success.

Publishing process

✅ Finished successfully.

  • Published container images:
    • ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-rbac:pr_1987__1.47.4

Backstage Compatibility Check

✅ All workspaces are compatible with the target Backstage version (1.45.3).

No action required.

Metadata Validation

✅ All metadata files validated successfully.

Running e2e tests
/test e2e-ocp-helm

@github-actions
Copy link
Copy Markdown
Contributor

Smoke tests workflow passed. All plugins loaded successfully.

@rhdh-test-bot
Copy link
Copy Markdown

✅ Passed E2E Tests - rbac

Platform: ocp 4.18 | RHDH Version: 1.10 | Duration: 9m 7s
Passed: 24 | Failed: 0 | Flaky: 0 | Skipped: 0
Playwright Report | Build Log | Artifacts

@openshift-ci openshift-ci Bot added the lgtm label Mar 13, 2026
@gashcrumb gashcrumb merged commit cf4d028 into redhat-developer:main Mar 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm mandatory-workspace PR affects a workspace with required plugins for releases workspace-update PR modifies files in an existing workspace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants